package net;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;

public class tonghopdocghi extends Thread{
	private ObjectInputStream in;
	private ObjectOutputStream out;
	private Queues<msg>cmdqueue;
	private Queues<msg> sendqueue;
	private Socket socket;
	public Socket getSocket() {
		return socket;
	}
	public void setSocket(Socket socket) {
		this.socket = socket;
	}
	public tonghopdocghi(){}
	public tonghopdocghi(ObjectInputStream in, ObjectOutputStream out, Queues<msg> cmdqueue, Queues<msg> sendqueue,Socket socket)
	{
		super();
		this.in=in;
		this.out=out;
		this.cmdqueue=cmdqueue;
		this.sendqueue=sendqueue;
		this.socket=socket;
	}
	public void run()
	{
		
		{
			docghi docghi=new docghi(in, cmdqueue);
			docghi2 docghi2=new docghi2(out, sendqueue,socket);
			docghi.start();
			docghi2.start();
			
			
		}
		
	}

	
	
}
